<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <style type="text/css">
    	#nav2{
    		margin: 40px auto;
    	}
    	.input{
    		height: 25px;
    	}
    </style>
  </head>
  <body>
    <%@ include file="include/top.jsp"%>
    <ul id="nav2" class="breadcrumb">
	    <li><a href="stock"><img src="<%=basePath %>static/img/kp.PNG"/></a></li>
    </ul>
    <div class="container">
	    <table class="table table-bordered" style="border-width: 2px">
			<thead>
				<tr>
					<th>商品编号</th>
					<th>商品名称</th>
					<th>产地</th>
					<th>规格</th>
					<th>包装</th>
					<th>价格</th>
					<th>描述</th>
					<th>库存数量</th>
					<th>生产批号</th>
					<th>供应商</th>
			  	</tr>
		 	</thead>
		 	<tbody>
		 		<c:forEach items="${inventoryList}" var="inventory">
			 		<tr>
						<td>${inventory.goods.id}</td>
						<td>${inventory.goods.goodsname}</td>
						<td>${inventory.goods.productplace}</td>
						<td>${inventory.goods.size }</td>
						<td>${inventory.goods.pack }</td>
						<td>${inventory.goods.price }</td>
						<td>${inventory.goods.description }</td>
						<td>${inventory.number}</td>
						<td>${inventory.goods.productcode }</td>
						<td>${inventory.goods.provider.providername}</td>
					</tr>
				</c:forEach>
		 	</tbody>
		</table>
	</div> 
  </body>
</html>
